package org.rcy.ruicingmarket.goods;

import feign.Headers;
import feign.RequestLine;
import org.rcy.framework.api.entity.ResultMessage;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/9/2 16:03
 */

public interface GoodsClient {

	@RequestLine("POST /goods/pagequery")
	@Headers("Content-Type: application/json")
	public ResultMessage pageQuery(GoodsPageQueryRequest goodsPageQueryRequest);

	@RequestLine("GET /goods/{id}")
	public ResultMessage getGoodsById(Long id);

	@RequestLine("GET /goods/{bname}")
	public ResultMessage getGoodsByName(String name);

	@RequestLine("GET /goods/remove/{id}")
	public ResultMessage removeById(Long id);

	@RequestLine("POST /goods/add")
	@Headers("Content-Type: application/json")
	public ResultMessage addGoods(GoodsVo vo);

}
